package com.easyj.admin.edu.service;

import java.util.List;
import com.easyj.base.exception.EasyjException;
import com.easyj.base.exception.ValidateException;
import com.easyj.base.common.page.Page;
import com.easyj.admin.activiti.vo.SimpleApproveVO;
import com.easyj.admin.db.model.Award;
import com.easyj.admin.db.model.AwardQO;

public interface AwardService {
	public final static String  ProcessDefKey="award"; //流程定义Key
	public final static String  ApproveTaskKey="awardAprove"; //审批任务定义Key

	public Page<Award> findPage(AwardQO filter);

   	public List<Award> findList(AwardQO filter);
		
    public long count(AwardQO filter);

	public Award findById(Long id);
	

	public int  apply(Award entity) throws EasyjException;
	
	
	public void approve(SimpleApproveVO approveVO) throws EasyjException;
	
	public int  updateEntity(Award entity) throws EasyjException;

	public int  cancel(Long id) throws EasyjException;
	
	public void delegateTask(SimpleApproveVO approveVO) throws ValidateException;


}
